package com.ruoyi.demo.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 文书模板管理业务对象
 *
 * @author ruoyi
 * @date 2023-04-21
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TestTemplateBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 模板名称
     */
    @NotBlank(message = "模板名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 缩略图
     */
    @NotBlank(message = "缩略图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String prePic;

    /**
     * 文件
     */
    @NotBlank(message = "文件不能为空", groups = { AddGroup.class, EditGroup.class })
    private String file;


}
